﻿<%@ Page Title="WTSTC?" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WillTheySplitTheCheck._Default" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to Will They Split the Check!
    </h2>
<p>
        <asp:Label ID="MultiSearchLabel" runat="server" Text="    Search by: "></asp:Label>
        <asp:DropDownList ID="SearchDropDownList" runat="server">
            <asp:ListItem Value="city">City</asp:ListItem>
            <asp:ListItem Value="zip">Zip Code</asp:ListItem>
            <asp:ListItem Value="state">State</asp:ListItem>
            <asp:ListItem Value="address">Address</asp:ListItem>
            <asp:ListItem Value="name">Name</asp:ListItem>
            <asp:ListItem Value="storeid">Store ID</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="MultiSearchTextBox" runat="server" defaultButton="MultiSearchButton"></asp:TextBox>
        <asp:Button ID="MultiSearchButton" runat="server" 
            onclick="MultiSearchButton_Click" Text="Search" />
    </p>
    <p>
        <asp:GridView ID="SearchResultsGridView" runat="server" CellPadding="4" 
            ForeColor="#333333" GridLines="None" Width="16px" 
            AutoGenerateColumns="False" Height="169px" 
            onselectedindexchanged="SearchResultsGridView_SelectedIndexChanged1">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#789DCA" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#789DCA" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E7EDF4" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#C6DAF1" Font-Bold="False" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />

            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="name" HeaderText="Name" SortExpression="name" />
                <asp:BoundField DataField="address" HeaderText="Address" SortExpression="address" />
                <asp:BoundField DataField="city" HeaderText="City" SortExpression="city" />
                <asp:BoundField DataField="state" HeaderText="State" SortExpression="state" />
                <asp:BoundField DataField="zip" HeaderText="Zip" SortExpression="zip" />
                <asp:BoundField DataField="yayvotes" HeaderText="Yay Votes" SortExpression="yayvotes" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="nayvotes" HeaderText="Nay Votes" SortExpression="nayvotes" ItemStyle-HorizontalAlign="Center"/>
            </Columns>

        </asp:GridView>
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:Panel ID="Panel1" runat="server" Height="89px">
    </asp:Panel>

    <asp:Label ID="Label1" runat="server" Font-Size="X-Large"></asp:Label>

    <br />
    <asp:Label ID="Label2" runat="server" Font-Size="Large"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Font-Size="Medium"></asp:Label>
    <br />
    <asp:Label ID="Label4" runat="server" 
        Text="Didi they Split the check for you? " Visible="False"></asp:Label>
    <asp:Button ID="YesButton" runat="server" onclick="YesButton_Click" Text="Yes" 
        Visible="False" />
    <asp:Button ID="NoButton" runat="server" onclick="NoButton_Click" Text="No" 
        Visible="False" />
    <br />
    <asp:Label ID="Label5" runat="server" Text="Thanks for your input!" 
        Visible="False"></asp:Label>

</asp:Content>

